package com.learn.demo.api.controller;

import com.learn.demo.config.SwaggerTags;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :wm
 * @description : 欢迎Controller
 */
@Api(SwaggerTags.HELLO)
@RestController("helloController.v1")
@RequestMapping(value = "/v1")
public class HelloController {
    @ApiOperation(value = "hello")
    @GetMapping(value = "/hello")
    public String sayHello() {
        return "hello world";
    }
}
